package com.wavefront.obj.parser;

import java.util.Hashtable;
import com.wavefront.obj.parser.line.DefaultParser;

public abstract class LineParserFactory {

	protected Hashtable<String, LineParser> parsers = new Hashtable<String, LineParser>();
	
	public LineParser getLineParser(String lineType) {
		
		LineParser parser = parsers.get(lineType);
		if (parser == null) {
			parser = new DefaultParser();
		}
		
		return parser;
	}
}
